|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.justobjects.pushlet.util.Sys
public class Sys
Utilities that interact with the underlying OS/JVM.
| Constructor Summary | |
|---|---|
Sys()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
forHTMLTag(java.lang.String aTagFragment)
Replace characters having special meaning inside HTML tags with their escaped equivalents, using character entities such as '&'. |
static java.util.Properties |
loadPropertiesFile(java.lang.String aFilePath)
Load properties file from file path. |
static java.util.Properties |
loadPropertiesResource(java.lang.String aResourcePath)
Load properties file from classpath. |
static long |
now()
Shorthand for current time. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sys()
| Method Detail |
|---|
public static java.lang.String forHTMLTag(java.lang.String aTagFragment)
The escaped characters are :
This method ensures that arbitrary text appearing inside a tag does not "confuse" the tag. For example, HREF='Blah.do?Page=1&Sort=ASC' does not comply with strict HTML because of the ampersand, and should be changed to HREF='Blah.do?Page=1&Sort=ASC'. This is commonly seen in building query strings. (In JSTL, the c:url tag performs this task automatically.)
public static java.util.Properties loadPropertiesResource(java.lang.String aResourcePath)
throws java.io.IOException
java.io.IOException
public static java.util.Properties loadPropertiesFile(java.lang.String aFilePath)
throws java.io.IOException
java.io.IOExceptionpublic static long now()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||